<!DOCTYPE html>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:composite="http://java.sun.com/jsf/composite/composite">


<div class="top-logo">
    <a href="http://www.suaparte.org"> 
    <h:graphicImage library="image" name="small-logo.png" />
    </a>
</div>



<div class="top-login">
    <h:panelGroup rendered="#{not empty userc.userb.user.id}" >
        <h:form>
            <h:panelGrid columns="2">
                <h:outputLabel id="name" value="#{userc.personb.person.name}"> | </h:outputLabel>
                <h:commandLink action="#{userc.logout}"> Sair</h:commandLink>
            </h:panelGrid>
        </h:form>
    </h:panelGroup>
</div>        


<div class="top-search">
    <ui:include src="/resources/jsf/component/composition/system/search.xhtml" />
</div>

<div class="top-icon">
    <h:panelGroup rendered="#{not empty userc.userb.user.id}" >
        <h:panelGrid columns="3">
        <h:link outcome="/user/home">
        <h:graphicImage library="image" name="icon-home.png" title="Home"/>
        </h:link>
        <h:link outcome="/user/profile/profile">
        <h:graphicImage library="image" name="icon-head2.png" title="Perfil"/>
        </h:link>
        <h:link outcome="/user/product/my-products" >
        <h:graphicImage library="image" name="icon-suaparte1.png" title="Sua Parte"/>
        </h:link>
        </h:panelGrid>
    </h:panelGroup>
</div>

</ui:composition>		